/*
 * @Author: tonghao
 * @Date: 2024-10-12 09:53:31
 * @LastEditors: tonghao
 * @LastEditTime: 2024-10-17 10:11:10
 * @Description: 请填写简介
 */
import {http} from '@/utils/http'
import type { BannerItem, CategoryItem,  HotItem } from '@/types/home'
export const getHomeMultidata = () => {
  return http<BannerItem[]>({
    method: 'GET',
    url: '/home/banner',
  })
}

/**
 * 首页-前台分类-小程序
 */
export const getHomeCategoryAPI = () => {
  return http<CategoryItem[]>({
    method: 'GET',
    url: '/home/category/mutli',
  })
}

export const getHomeHotAPI = () => {
  return http<HotItem[]>({
    method: 'GET',
    url: '/home/hot/mutli',
  })
}
export const getHomeGoodsGuessLikeAPI  = () => {
  return http<GuessItem[]>({
    method: 'GET',
    url: '/home/goods/guessLike',
  })
}
